home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_315 / surf / scrnio.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  600b  |  28 lines

  1. #ifndef SCRNIO_H
  2. #define SCRNIO_H 1
  3.  
  4. #ifndef MYTYPES_H_FILE
  5. #include "mytypes.h"
  6. #endif
  7. extern void InitWindow();
  8. extern void CloseDisplay();
  9. extern void SetMono();
  10. extern void ClearWindow();
  11. extern void DrawPoly();
  12.  
  13. extern short DitherPower, DitherLevels;
  14. extern int WinHOrig, WinVOrig;
  15. extern int XOR, WRITE;
  16. extern short DitherMask;
  17.  
  18. extern void FreeOldDither();
  19. extern bool AllocDither();
  20.  
  21. #define CntrX(XVAL) ((XVAL) - WinHOrig)
  22. #define CntrY(YVAL) (WinVOrig - (YVAL)) /* fudge for the mouse */
  23.  
  24. #define UCntrX(XVAL) ((XVAL) + WinHOrig)
  25. #define UCntrY(YVAL) (WinVOrig - (YVAL))
  26.  
  27. #endif SCRNIO_H
  28.